package com.org.javabody.Java_To_Json.BuildJson;

import net.sf.json.JSONObject;

public class BaseParseJson {
    public void parseJson() {
    	//str转Json
    	String str = "{'rowid':'1000';'name':'xiaohong';'sex':'lady';'birth':'1992-11-13'}";
    	JSONObject jsonObj = new JSONObject().fromObject(str);
    	String name = jsonObj.getString("name");  	
    	System.out.println(name);
    	
    	String birth = jsonObj.getString("birth");  	
    	System.out.println(birth);
    	
    }
	public static void main(String[] args) {
		BaseParseJson bjson = new BaseParseJson();
		bjson.parseJson();
	}
}
